<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.prime.com.tr/ui">

    <ui:composition>
        <p:panel id="currentcredittermpanel" header="Current Credit Term">
            <h:panelGrid columns="2">
                <h:outputText value="#{bundle.ViewCreditTermEntityLabel_creditLimit}"/>
                <h:inputText value="#{creditTermEntityController.selected.creditLimit}" title="#{bundle.ViewCreditTermEntityTitle_creditLimit}">
                    <f:validator validatorId="macTeam.CreditLimitValidator" />
                </h:inputText>

                <h:outputText value="#{bundle.ViewCreditTermEntityLabel_discount}"/>
                <h:inputText value="#{creditTermEntityController.selected.discount}" title="#{bundle.ViewCreditTermEntityTitle_discount}"/>

                <h:outputText value="#{bundle.ViewCreditTermEntityLabel_discountRepayTime}"/>
                <h:inputText value="#{creditTermEntityController.selected.discountRepayTime}" title="#{bundle.ViewCreditTermEntityTitle_discountRepayTime}"/>

                <h:outputText value="#{bundle.ViewCreditTermEntityLabel_lateCharges}"/>
                <h:inputText value="#{creditTermEntityController.selected.lateCharges}" title="#{bundle.ViewCreditTermEntityTitle_lateCharges}"/>

                <h:outputText value="#{bundle.ViewCreditTermEntityLabel_maxRepayTime}"/>
                <h:inputText value="#{creditTermEntityController.selected.maxRepayTime}" title="#{bundle.ViewCreditTermEntityTitle_maxRepayTime}"/>
            </h:panelGrid>
        </p:panel>
        <p:commandButton action="#{creditTermEntityController.update}" value="Save" ajax="false"/>
        <p:commandButton action="Edit" value="Reset" ajax="false"/>

    </ui:composition>

</html>
